package gui;

import java.awt.BorderLayout;
import java.io.File;
import java.util.ArrayList;
import java.util.List;

import javax.swing.JFrame;
import javax.swing.JPanel;

import model.Point;


public class Gui extends JFrame {
	JPanel pane;
	Graphwindow graph;
	
	public Gui(List<File> files) {
		pane = new JPanel(new BorderLayout());
		this.setContentPane(pane);
	
		
		graph = new Graphwindow("1.gpx");
		pane.add(new Buttonlist(files, graph), BorderLayout.WEST);
		pane.add(graph, BorderLayout.CENTER);
		this.validate();
		this.setVisible(true);
	}
}
